package com.love.travel.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.love.common.core.annotation.Excel;
import com.love.common.core.web.domain.BaseEntity;

/**
 * 产品评价对象 travel_product_comment
 * 
 * @author love
 * @date 2025-10-25
 */
public class TravelProductComment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 评价ID */
    private Long commentId;

    /** 产品ID（关联travel_product） */
    @Excel(name = "产品ID", readConverterExp = "关=联travel_product")
    private Long productId;

    /** 订单ID */
    @Excel(name = "订单ID")
    private Long orderId;

    /** 评价人昵称 */
    @Excel(name = "评价人昵称")
    private String nickName;

    /** 评分（1-5分） */
    @Excel(name = "评分", readConverterExp = "1=-5分")
    private Long score;

    /** 评价内容 */
    @Excel(name = "评价内容")
    private String content;

    /** 评价图片（用逗号分隔） */
    @Excel(name = "评价图片", readConverterExp = "用=逗号分隔")
    private String imageUrls;

    /** 是否匿名：0-否 1-是 */
    @Excel(name = "是否匿名：0-否 1-是")
    private Long isAnonymous;

    /** 是否审核通过：0-否 1-是 */
    @Excel(name = "是否审核通过：0-否 1-是")
    private Long isApproved;

    public void setCommentId(Long commentId) 
    {
        this.commentId = commentId;
    }

    public Long getCommentId() 
    {
        return commentId;
    }

    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }

    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }

    public void setNickName(String nickName) 
    {
        this.nickName = nickName;
    }

    public String getNickName() 
    {
        return nickName;
    }

    public void setScore(Long score) 
    {
        this.score = score;
    }

    public Long getScore() 
    {
        return score;
    }

    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }

    public void setImageUrls(String imageUrls) 
    {
        this.imageUrls = imageUrls;
    }

    public String getImageUrls() 
    {
        return imageUrls;
    }

    public void setIsAnonymous(Long isAnonymous) 
    {
        this.isAnonymous = isAnonymous;
    }

    public Long getIsAnonymous() 
    {
        return isAnonymous;
    }

    public void setIsApproved(Long isApproved) 
    {
        this.isApproved = isApproved;
    }

    public Long getIsApproved() 
    {
        return isApproved;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("commentId", getCommentId())
            .append("productId", getProductId())
            .append("orderId", getOrderId())
            .append("nickName", getNickName())
            .append("score", getScore())
            .append("content", getContent())
            .append("imageUrls", getImageUrls())
            .append("isAnonymous", getIsAnonymous())
            .append("isApproved", getIsApproved())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
